﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DaInterFace;

namespace DaInterFace
{
    internal class Mobile : IMobile
    {
        public event MobileMessage MessageEvent;

        public IDataBase DaData { get { return daData; } }

        private IDataBase daData;

        public Mobile(IDataBase daData)
        {
            this.daData = daData;
        }

        public void Message(MessageType type, String note)
        {
            if (MessageEvent != null)
            {
                MessageEvent.Invoke(type, note);
            }
        }
    }
}